package com.example.springboottest.student.service;

import com.example.springboottest.student.dao.StudentCourseDao;
import com.example.springboottest.student.entity.StudentCourseEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentCourseServiceImpl implements StudentCourseService {

    @Autowired
    StudentCourseDao studentCourseDao;
    @Override
    public List<StudentCourseEntity> findById(Integer s_id) {
        return studentCourseDao.findById(s_id);
    }

    @Override
    public void save(StudentCourseEntity studentCourseEntity) {
        studentCourseDao.save(studentCourseEntity);
    }
}
